<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>

    <div class="banner_box"><img src="<?php echo image_url('banner.jpg'); ?>"></div>
    <div class="page_contact">
        <div class="phone_last">
            <select>
                <?php if ($zixuncategory) : ?>
                    <?php foreach ($zixuncategory as $key => $val) : ?>
                        <option value="<?php echo "/news/" . $val['id'] . ".html"; ?>" <?php if (isset($id) && $id == $val['id']) { ?> selected <?php } ?> ><?php echo $val['category_name'] ?? ""; ?></option>
                    <?php endforeach; ?>
                <?php endif; ?>
            </select>
        </div>
        <div class="class_menu">
            <h1>新闻中心</h1>
            <ul>
                <?php if ($zixuncategory) : ?>
                    <?php foreach ($zixuncategory as $key => $val) : ?>
                        <li>
                            <a href="<?php echo "/news/" . $val['id'] . ".html"; ?>" <? if (isset($id) && $id == $val['id']) { ?> class="on" <?php } ?> ><?php echo $val['category_name'] ?? ""; ?></a>
                        </li>
                    <?php endforeach; ?>
                <?php endif; ?>
            </ul>
        </div>
        <div class="page_show">
            <div class="web_site">
                您当前的位置：<a href="/">首页</a> &gt; <a href="/news.html">新闻中心</a> &gt; 公司新闻
            </div>
            <div class="list">
                <?php if ($news) : ?>
                    <?php foreach ($news as $key => $val) : ?>
                        <dl>
                            <dt><a href="<?php echo "/news_show/" . $val['id'] . ".html"; ?>"><img
                                            src="<?php echo $val['img']; ?>"></a></dt>
                            <dd>
                                <a href="/news_show/<?php echo $val['id']; ?>.html"><?php echo $val['title']; ?></a>
                                <p class="time"><?php echo date("Y-m-d", strtotime($val['create_time'])); ?></p>
                                <span class="con"><?php echo $val['describe']; ?></span>
                            </dd>
                        </dl>
                    <?php endforeach; ?>
                <?php endif; ?>

            </div>
            <div class="page">
                <ul><?php echo $pagination; ?></ul>
            </div>
        </div>
    </div>
<?php $this->load->view('common/footer'); ?>